package heima3_2.cn.osc.ui.user_collocet_fragment;

import android.support.v4.app.FragmentActivity;

import heima3_2.cn.osc.base.MyBaseAdapter;
import heima3_2.cn.osc.base.OurTabBaseFragment;
import heima3_2.cn.osc.presenter.CollectBlogPresenter;
import heima3_2.cn.osc.ui.adapter.UserSoftAdapter;

/**
 * Created by yaozhanlie on 2017/1/13.
 */

public class BlogFragment extends OurTabBaseFragment {
    private CollectBlogPresenter mCollectBlogPresenter;

    @Override
    protected MyBaseAdapter getAdapter(FragmentActivity activity, Object o) {
        return new UserSoftAdapter(activity, null);
    }

    @Override
    public void initPresenter() {
        mCollectBlogPresenter = new CollectBlogPresenter(this);
        mCollectBlogPresenter.getData(0);
    }

    @Override
    public void getMoreData() {
        mCollectBlogPresenter.getData(index++);
    }
}
